from urllib.request import urlopen

url = "https://www.badmintoncn.com/search.php?keyword=%CA%AF%D3%EE%C6%E6"
resp = urlopen(url)

s = resp.read().decode("gbk")
print(s)

# 明确指定文件编码为 UTF-8
with open("syq.html", mode="w", encoding="gbk") as f:
    f.write(s)
print("done!")